#include "TableWidget.h"
#include <QHeaderView>
TableWidget::TableWidget(QWidget *parent) :
    QTableWidget(parent)
{
    horizontalHeader()->hide();
    horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch);
    verticalHeader()->setSectionResizeMode(QHeaderView::Stretch);
    setRowCount(10);
    setColumnCount(3);
    setEditTriggers(QAbstractItemView::NoEditTriggers);
    setSelectionBehavior(QAbstractItemView::SelectRows);
    setMinimumHeight(300);
    setMinimumWidth(400);
}
